e130b5aa1e4c5b506f8ab016be7e97910fb1c090,findbugs/src/java/edu/umd/cs/findbugs/detect/FindNullDeref.java,FindNullDeref,examineReturnInstruction,#Location#,396

Before Change


                bugPattern = "NP_CLONE_COULD_RETURN_NULL";
            else if (methodName.equals("toString"))
                bugPattern = "NP_TOSTRING_COULD_RETURN_NULL";
			BugInstance warning = new BugInstance(bugPattern, tos.isDefinitelyNull() ?
					HIGH_PRIORITY : NORMAL_PRIORITY)
				.addClassAndMethod(methodGen, sourceFile)
				.addSourceLine(classContext, methodGen, sourceFile, location.getHandle());

After Change


						
            String bugPattern = "NP_NONNULL_RETURN_VIOLATION";
            int priority = NORMAL_PRIORITY;
            if (tos.isDefinitelyNull() && !tos.isException()) priority = HIGH_PRIORITY;
            String methodName = method.getName();
            if (methodName.equals("clone")) {
                bugPattern = "NP_CLONE_COULD_RETURN_NULL";